/**
 * 
 */
package org.springyu.codegenerator.model;

import java.sql.Date;
import java.sql.Types;

/**
 * @author springyu
 * 
 */
public enum DataType {

	T_INTEGER(Types.INTEGER, Integer.class), T_LONG(Types.SMALLINT, Long.class), 
	T_DOUBLE(
			Types.DOUBLE, Double.class), T_STRING(Types.VARCHAR, String.class), T_CHAR(
			Types.CHAR, String.class), T_DATE(Types.DATE, Date.class);

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public Class getName() {
		return name;
	}

	public void setName(Class name) {
		this.name = name;
	}

	private int code;
	private Class name;

	private DataType(int code, Class name) {
		this.code = code;
		this.name = name;
	}

}
